<?php

namespace App\Http\Controllers;

use App\traits\JsonResult;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests, JsonResult;
    public function __construct()
    {
        $adminId  = session()->get('admin_id', '0');
        if (empty($adminId)){
            return redirect('/isLogin');exit;
        }
    }
}
